package com.ruoyi.agriculture.guo.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 农业问答会话对象 agri_conversation
 * 
 * @author ruoyi
 * @date 2025-07-31
 */
public class AgriConversation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 会话ID */
    private Long id;

    /** 提问者ID（关联sys_user.user_id） */
    @Excel(name = "提问者ID", readConverterExp = "关=联sys_user.user_id")
    private Long askerId;

    /** 回答者ID（关联sys_user.user_id） */
    @Excel(name = "回答者ID", readConverterExp = "关=联sys_user.user_id")
    private Long expertId;

    /** 会话状态（open=未答复，answered=已答复，closed=已关闭） */
    @Excel(name = "会话状态", readConverterExp = "o=pen=未答复，answered=已答复，closed=已关闭")
    private String status;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setAskerId(Long askerId) 
    {
        this.askerId = askerId;
    }

    public Long getAskerId() 
    {
        return askerId;
    }

    public void setExpertId(Long expertId) 
    {
        this.expertId = expertId;
    }

    public Long getExpertId() 
    {
        return expertId;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("askerId", getAskerId())
            .append("expertId", getExpertId())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
